package com.ruoyi.hr.service.impl.contractmanage;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.hr.domain.Authority;
import com.ruoyi.hr.mapper.contractmanage.HistoryContractMapper;
import com.ruoyi.hr.service.contractmanage.HistoryContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class HistoryContractServiceImpl implements HistoryContractService {

    @Autowired
    HistoryContractMapper historyContractMapper;

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> findDataList(Map map, Authority authority) {
        return historyContractMapper.findDataList(map, authority);
    }
}
